package com.spzx.cart.service;

import com.spzx.cart.domain.CartInfo;

import java.util.List;

/**
 * BelongProject: spzx-parent
 * BelongPackage: com.spzx.cart.service
 * Description:
 *
 * @Author 段鑫涛
 * @Create 2025/6/2 19:31
 * @Version 1.0
 */
public interface ICartService {

    void addToCart(Long skuId, Integer skuNum);

    List<CartInfo> getCartList();

    void deleteCart(Long skuId);

    void checkCart(Long skuId, Integer isChecked);

    void allCheckCart(Integer isChecked);

    void clearCart();

    List<CartInfo> getCartCheckedList(Long userId);

    Boolean updateCartPrice(Long userId);

    Boolean deleteCartCheckedList(Long userId);
}
